trash-monitor: Rate limit updates
authorOndrej Holy <oholy@redhat.com>
Fri, 22 May 2020 01:14:47 +0000 (21:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 22 May 2020 01:15:12 +0000 (21:15 -0400)
commite8a120e5afd4542584ecbbe23f76300d2c858d9e
tree6c1b456f8079e07eac9776c98cd74d36ae45bdd4
parente9872d52d8bbaa074e89e0b8795452fe7a843b3f
trash-monitor: Rate limit updates

Trash monitor queries info from gvfsd-trash after each file monitor
change which can be problematic when too many changes happen in
a short time. Let's rate limit the number of queries...

Fixes: #1010
gtk/gtktrashmonitor.c